package com.aica.bo.response;

import com.aica.bo.UserMessageBo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 登录返回结果
 * @author yly
 * @date 2021/6/7
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginBo {
    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String username;
    /**
     * 昵称
     */
    private String nickName;

    /**
     * 电话号码
     */
    private String telephone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 头像图片路径
     */
    private String avatar;
    /**
     * 用户性别  男 女
     */
    private String gender;

    //--------------------------------------------

    private String token;

    //--------------------------------------------



    public LoginBo(UserMessageBo u,String token){
        userId = u.getUserId();
        username = u.getUsername();
        nickName = u.getNickName();
        telephone = u.getTelephone();
        email =u.getEmail();
        avatar = u.getAvatar();
        gender = u.getGender();

        this.token = token;
    }
}
